package com.zpark.service.impl;

import com.zpark.service.IUserService;
import com.zpark.service.exception.DataContentException;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaoyu
 * @version 1.0 2022/10/8
 */
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public List<Integer> test(Integer num) throws DataContentException {
        if(num > 100) {
            throw new DataContentException("数据不合法 num > 100");
        }
        return null;
    }
}
